package com.b2bpsssm.simulate;/**
 * @author JunYu
 * @create 2022-08-14--14:48
 */

import com.b2bpsssm.pojo.SysActionLog;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @program: B2BPSSMSystem
 *
 * @description: 生成日志
 *
 * @author: JunYu
 *
 * @create: 2022-08-14 14:48
 **/

public class GenerateSysActionLog {
    public static List<SysActionLog> generateList(int pageSize)
    {
        List<SysActionLog> list= new ArrayList<>();
        SysActionLog sysActionLog = new SysActionLog();
        sysActionLog.setId(1);
        sysActionLog.setTitle("测试数据");
        sysActionLog.setOper_byId(1);
        sysActionLog.setModule("测试数据");
        sysActionLog.setAction("测试数据");
        sysActionLog.setCreate_time(new Date(2022,10,30));
        for(int i = 0;i<pageSize;i++)
        {
            sysActionLog.setId(i);
            list.add(sysActionLog);
        }
        return list;
    }
    public static SysActionLog generateLog(){
        SysActionLog sysActionLog = new SysActionLog();
        sysActionLog.setId(1);
        sysActionLog.setTitle("测试数据");
        sysActionLog.setOper_byId(1);
        sysActionLog.setModule("测试数据");
        sysActionLog.setAction("测试数据");
        return sysActionLog;
    }

}
